import React from "react";
import './style.less'
import {useNavigate} from "react-router-dom";

const BuyAndStoreView=()=>{
    const navigate = useNavigate()

    //跳转到登陆的函数
    function login(){
        navigate('/login')
    }

    return(

        <div className="buy-store-container clear-fix">
            <div className="item-container float-left">
                <button className="selected"  onClick={login}>收藏</button>

            </div>
            <div className="item-container float-right">
                <button className="selected">购买</button>
            </div>
        </div >
        )

}
export default BuyAndStoreView